From: Georges Basile Stavracas Neto Date: Mon, 16 Nov 2020 18:12:25 +0000 (-0300) Subject: appDisplay: Don't update multiline for search results X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~727 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ee0f250662b1f1835c7cda696db32ed0ff3b9ce5;p=gnome-shell.git appDisplay: Don't update multiline for search results The grid icons in the search results page doesn't expand to acommodate the multiline label, resulting in the multiline label to overflow behind the list search results. However, after 548d3b62d, it was possible to trigger this behavior with keyboard focus. Don't update multiline labels for search results. Part-of: --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 322aa3cd7..1cca533c7 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -1475,6 +1475,7 @@ class AppViewItem extends St.Button { } this._otherIconIsHovering = false; + this._expandTitleOnHover = expandTitleOnHover; if (expandTitleOnHover) this.connect('notify::hover', this._onHover.bind(this)); @@ -1495,7 +1496,7 @@ class AppViewItem extends St.Button { } _updateMultiline() { - if (!this.icon.label) + if (!this._expandTitleOnHover || !this.icon.label) return; const { label } = this.icon;